<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        const 时间 = new Date(1995, 11, 17);
        console.log(时间.getYear());
        时间.getYear = () => {
            console.log('别的东西');
        };
        console.log(时间.getYear()); // 优先调用时间对象中的, 然后依原型链查找
    </script>
</head>
<body>
    
</body>
</html>